from BaseConfig import FLASK_RUN_PORT, FLASK_RUN_HOST

# driver path,暂时不用
SERVICE_PATH = "../../../static/spider/spider/tools/chromedriver.exe"

URL = "https://mp.weixin.qq.com/"

# cookie path
COOKIE_PATH = 'static/spider/spider/configs/cookies.txt'

ACCOUNT = "786282790@qq.com"
PASSWORD = "l18124938819"

# 公众号标识数组
FAKEID = [
    {
        "name": "华南农业大学",
        "tag": "MjM5OTE2MzUwNA==",
    },
    {
        "name": "华南农业大学图书馆",
        "tag": "MzA3Mjg4MzM3OQ==",
    },
    {
        "name": "华南农业大学学生会",
        "tag": "MzUzMDkwNTMwMw==",
    },
    {
        "name": "SCAU数学与信息学院",
        "tag": "MzAwODQwMjc3NQ==",
    }
]

CATEGORY = "微信公众号"
CATEGORY_ID = 1

# 存储最新爬取时间的文件，暂时不用
LATEST_TIME_PATH = "applications/common/spider/config/LATEST_TIME.txt"

QRIMG_PATH = "static/spider/spider/configs/webWeixinQr.jpg"

EMAIL_PATH = "http://" + FLASK_RUN_HOST + ":" + FLASK_RUN_PORT + "/mail/send/qrcode"

LOCAL_IMG_SAVE_ROOT = "http://" + FLASK_RUN_HOST + ":" + FLASK_RUN_PORT

# 存储位置
SAVE_ROOT_PATH = "static/spider/compoment/"

LOG_SAVE_PATH = "applications/common/spider/config/wechat_public_logs.txt"

GitHUbTarDir = "/wx_public"
